﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MsgEntity
{
    public class MessageEntity
    {
        public byte[] SyncTag
        {
            get { return new byte[] { 0xAA, 0x55}; }
        }

        public byte[] Version
        {
            get { return new byte[] { 0x02 }; }
        }

        public byte[] PacketLength
        {
            get;
            set;            
        }

        public byte[] PayloadId
        {
            get;
            set;
        }

        public byte[] MessageId
        {
            get;
            set;
        }

        public byte[] PeerId
        {
            get;
            set;
        }

        public byte[] Crc16
        {
            get;
            set;
        }
      
    }
}
